using System;
namespace IcsSEMCtrl.Event.Device
{
	[Serializable]
	public class DeviceStateEvent : DeviceEvent
	{
		public static readonly string CLASS = "IcsSEMCtrl.Emulator.Event.Device.DeviceStateEvent";
		public static readonly string SPECIFIC_SUBJECT = "state";
		public new static readonly string SUBJECT = DeviceEvent.SUBJECT + "." + DeviceStateEvent.SPECIFIC_SUBJECT;
		public string state = "";
		public string State
		{
			get
			{
				return this.state;
			}
			set
			{
				this.state = value;
			}
		}
		public DeviceStateEvent(string deviceId, string deviceType, string deviceState) : base(deviceId, deviceType)
		{
			this.State = deviceState;
		}
		protected new string CreateSubject(string id)
		{
			return DeviceStateEvent.FormSubject(id);
		}
		public new static string FormSubject(string id)
		{
			return DeviceStateEvent.SUBJECT + "." + id;
		}
	}
}
